package sctu.edu.java.year2016.team05.zengkun.day20160531.example;

import java.lang.reflect.Constructor;

/**
 * Created by mike on 2016/5/31.
 */
public class MoreConstructor {
    String s;
    int i, i2, i3;

    private MoreConstructor() {
    }

    protected MoreConstructor(String s, int i) {
        this.s = s;
        this.i = i;
    }

  public MoreConstructor(String... Strings) throws NumberFormatException {
        if (0 < Strings.length)
            i = Integer.valueOf(Strings[0]);
        if (1 < Strings.length)
            i2 = Integer.valueOf(Strings[1]);
        if (2 < Strings.length)
            i3 = Integer.valueOf(Strings[2]);

    }

    public void print() {
        System.out.println("s=" + s);
        System.out.println("i=" + i);
        System.out.println("i2=" + i2);
        System.out.println("i3=" + i3);

    }


    //public static void main(String[] args) {
       // MoreConstructor aa=new MoreConstructor();
       // aa.print();
    //}




}





